﻿using RotovapPlatform.Domain.Equipment.Device.Robot.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RotovapPlatform.Domain.Equipment.Device.Robot.Dto
{
	public class RobotTaskSendDto
	{
		public TaskType TaskType { get; set; } //任务类型: 101-取外部来料(只夹托盘)  102-取货架(夹瓶子)  103-取货架(夹托盘)  104-取旋蒸工作站  105-取抽液工作站  201-放外部来料(只夹托盘)  202-放货架(放瓶子)  203-放货架(放托盘)  204-放旋蒸工作站  205-放抽液工作站  301-换末端夹爪  501-回原点
		public ushort BottleType { get; set; } //1-500ml旋蒸瓶   2-1000ml旋蒸瓶  3-离心瓶  4-取样瓶                        
		public ushort Position { get; set; } //取放位置: 
		public ushort NeedScan { get; set; } = 1; //是否需要扫描: 1-需要  0-不需要
		public ushort Reserved1 { get; set; } = 0; //保留字段1
		public ushort Reserved2 { get; set; } = 0; //保留字段2

		public RobotTaskSendDto()
		{
			TaskType = TaskType.None;
			BottleType = 1;
			Position = 1; //取放位置
			NeedScan = 1; //是否需要扫描
			Reserved1 = 0;
			Reserved2 = 0;
		}
	}

	/// <summary>   
	/// 任务发送启动信号DTO 
	/// </summary>
	public class RobotTaskStartDto
	{
		public ushort Start { get; set; } //启动信号

		public RobotTaskStartDto()
		{
			Start = 0;
		}
	}
}
